﻿

namespace MediatorPattern.Character;

internal class Teacher : BaseCharacter
{
    public override void GetMessage(string message, BaseCharacter characterFrom)
    {
        Console.WriteLine($"{this.GetType().Name}:{Name} get 收到 {characterFrom.Name} {message}");
    }

    public override void SendMessage(string message, BaseCharacter characterTo)
    {
        Console.WriteLine($"{this.GetType().Name} : {Name}  to 发送 {characterTo.Name} {message}");
        characterTo.GetMessage(message,this);
    }
}
